/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */

package org.sbbs.prop;

import java.util.List;
import java.util.Map;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <b>描述:</b><br/>
 * <br/>
 * 
 * 说明描述用途及关键点,算法等
 * <p>
 * <b>创建时间:</b> 2025年3月19日 18:07:44 <br/>
 * <b>作者:</b> Mr.FDC <fdc_messenger@126.com> <br/>
 * 
 * <p>
 * <b>修改记录:</b><br/>
 * <ol>
 * <li>......</li>
 * </ol>
 */
@Data
@ConfigurationProperties(prefix = "app")
public class AppProperties {

	private String name;

	private String version;

	private boolean enabled;

	private List<String> features;

	private Map<String, String> settings;

	private Server server;

	// getters and setters

	public static class Server {

		private String host;

		private int port;

		// getters and setters

		public String getHost() {
			return host;
		}

		public void setHost(String host) {
			this.host = host;
		}

		public int getPort() {
			return port;
		}

		public void setPort(int port) {
			this.port = port;
		}

	}

}
